<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Oracle Functions (PDO_OCI)</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.pdo-sqlsrv.connection.html">PDO_SQLSRV DSN</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.pdo-oci.connection.html">PDO_OCI DSN</a></div>
 <div class="up"><a href="pdo.drivers.html">PDO 驱动</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ref.pdo-oci" class="reference">
  
  <h1 class="title">Oracle Functions (PDO_OCI)</h1>
  
  <div class="partintro">

   <div class="section" id="pdo-oci.intro">
   <h2 class="title">简介</h2>
    <p class="para">
     <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此扩展是<em class="emphasis">实验性 </em>的。
此扩展的表象，包括其函数名称以及其他此扩展的相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本扩展风险自担 。</p></div>
     PDO_OCI is a driver that implements the <a href="intro.pdo.html" class="link">PHP Data
     Objects (PDO) interface</a>
     to enable access from PHP to Oracle databases through the OCI library.
    </p>
   </div>
   
   

<div class="section" id="ref.pdo-oci.installation">
 <h2 class="title">安装</h2>
 <p class="para">
  Use <strong class="option configure">--with-pdo-oci[=DIR]</strong>
 to install
  the PDO Oracle OCI extension, where the optional <em>[=DIR]</em>
  is the Oracle Home directory. <em>[=DIR]</em> defaults to
  the <var class="varname"><var class="varname">$ORACLE_HOME</var></var> environment variable.
 </p>
 <p class="para">
  Use <strong class="option configure">--with-pdo-oci=instantclient,prefix,version</strong>

  for an Oracle Instant Client <acronym>SDK</acronym>, where prefix and
  version are configured.
 </p>
 <p class="para">
  <div class="example-contents screen">
<div class="cdata"><pre>
// Using $ORACLE_HOME
$ ./configure --with-pdo-oci

// Using OIC for Linux with 10.2.0.3 RPMs with a /usr prefix
$ ./configure --with-pdo-oci=instantclient,/usr,10.2.0.3
</pre></div>
  </div>
 </p>
</div>




  </div>

  

 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="ref.pdo-oci.connection.html">PDO_OCI DSN</a> — Connecting to Oracle databases</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.pdo-sqlsrv.connection.html">PDO_SQLSRV DSN</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.pdo-oci.connection.html">PDO_OCI DSN</a></div>
 <div class="up"><a href="pdo.drivers.html">PDO 驱动</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
